Colorize CSS property value like `css--fontify-region'
authorVincenzo Pupillo <v.pupillo@gmail.com>
Sat, 22 Jun 2024 21:11:17 +0000 (23:11 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 23 Jun 2024 04:57:52 +0000 (07:57 +0300)
commit2f1c882a16e5e5215da039af1b4c4a8f569db1a1
treea049ca15b2eae36f8d45dade8cb66661e18d7bd7
parentdd0994aa36c3c7e0916c6d91b22edffbe530fb8d
Colorize CSS property value like `css--fontify-region'

If the value of a property is text representing a CSS color,
it will be fontified such that its background is the color
itself. 'php-ts-mode-css-fontify-colors' can be used to
disable this behaviour.
* lisp/progmodes/php-ts-mode.el (php-ts-mode-css-fontify-colors):
New custom var.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--colorize-css-value):
New function.
* lisp/progmodes/php-ts-mode.el (php-ts-mode): Use the new
function.  (Bug#71724)
lisp/progmodes/php-ts-mode.el